package simulationStack;

public class Test {
    public static void main(String[] args) {
        MyStack myStack=new MyStack();
        myStack.push(3);
        myStack.push(2);
        myStack.push(7);

        System.out.println(myStack.peek());//7
        System.out.println(myStack.pop());//7
        System.out.println(myStack.peek());//2
    }
}
